home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000004.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  811 b   |  31 lines  |  [TEXT/ttxt]

  1. source include/master-slave.inc;
  2. connection master;
  3. use test;
  4. set SQL_LOG_BIN=0;
  5. drop table if exists t1;
  6. create table t1 (word char(20) not null, index(word));
  7. load data infile '../../std_data/words.dat' into table t1;
  8. drop table if exists t2;
  9. create table t2 (word char(20) not null);
  10. load data infile '../../std_data/words.dat' into table t2;
  11. create table t3 (word char(20) not null primary key);
  12. connection slave;
  13. use test;
  14. drop table if exists t1;
  15. load table t1 from master;
  16. drop table if exists t2;
  17. load table t2 from master;
  18. drop table if exists t3;
  19. load table t3 from master;
  20. check table t1;
  21. select count(*) from t2;
  22. select count(*) from t3;
  23. connection master;
  24. set SQL_LOG_BIN=1;
  25. drop table if exists t1,t2,t3;
  26. save_master_pos;
  27. connection slave;
  28. sync_with_master;
  29. create table t1(n int);
  30. drop table t1;
  31.